from datetime import datetime, timedelta

# 请在此输入您的代码
start = datetime(year=2022, day=1, month=1)
end = datetime(year=2022, day=31, month=12)
result = 0
while start <= end:
    if start.day in (1, 11, 21, 31) or start.weekday() + 1 in (6, 7):
        result += 1
    start += timedelta(days=1)
print(result)
